package com.wudimeng.syll.constants;

/**
 * 返回常量类
 * 
 * @author wuxianlaing
 * @version 1.0
 * @since JDK 1.8
 */
public class ResponseConstants {

    /**
     * 状态码
     */
    public static final String STATUS_CODE = "status";

    /**
     * 当前系统时间
     */
    public static final String CURRENT_TIME = "currentTime";

    public static final String CURRENT_TIME_MILLIS = "currentTimeMillis";

    /**
     * 返回信息
     */
    public static final String MESSAGE = "message";

    /**
     * 成功信息
     */
    public static final String SUCCESS_MESSAGE = "操作成功.";

    /**
     * 失败信息
     */
    public static final String FAILED_MESSAGE = "操作失败.";

    /**
     * 访问成功
     */
    public static final String SUCCESS = "success";

    /**
     * 访问成功
     */
    public static final String DATA = "data";

    /**
     * TOKEN过期时间
     */
    public static final String EXPIRE = "expire";

    /**
     * 成功
     */
    public static final int API_STATUS_CODE_OK = 200;

    /**
     * token过期
     */
    public static final int API_AUTH_CODE_ERROR = 210;

    /**
     * 签名错误
     */
    public static final int API_SIGN_CODE_ERROR = 220;

    /**
     * 请求超时
     */
    public static final int API_STATUS_CODE_TIMEOUT = 301;

    /**
     * 未经授权的访问
     */
    public static final int API_AUTH_CODE_UNAUTHORIZED = 302;

    /**
     * 失败
     */
    public static final int API_STATUS_CODE_ERROR = 400;

    /**
     * 请先登录
     */
    public static final int API_AUTH_CODE_LOGIN_NO = 401;
}
